@import url(./base.less);
@rootSize: 37.5rem;
body {
  background-color: #fff;
  padding-bottom: (62 / @rootSize);
}
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.pannle {
  width: (345 / @rootSize);
  margin: 0 auto;
}
.top-nav {
  display: flex;
  height: (46 / @rootSize);
  justify-content: space-between;
  align-items: center;
  font-size: (13 / @rootSize);
  .top-nav-middle {
    display: flex;
    align-items: center;
    height: (32 / @rootSize);
    width: (250 / @rootSize);
    background-color: #f7f7f7;
    border-radius: (16 / @rootSize);
    img {
      display: block;
      height: (12 / @rootSize);
      width: (12 / @rootSize);
      margin-left: (16 / @rootSize);
    }
    span {
      color: #a4a4a4;
      margin-left: (12 / @rootSize);
    }
  }
  img:last-of-type {
    display: block;
    width: (20 / @rootSize);
    height: (20 / @rootSize);
  }
}
.top-pic {
  height: (272 / @rootSize);
  .top {
    height: (130 / @rootSize);
    width: 100%;
    img {
      width: 100%;
      height: 100%;
      box-shadow: (-2 / @rootSize) (5 / @rootSize) (20 / @rootSize)
        (2 / @rootSize) #ddd;
    }
  }
  .bot {
    height: (142 / @rootSize);
    display: flex;
    justify-content: space-between;
    align-items: center;
    // background-image: repeating-linear-gradient(
    //   #fff 0,
    //   #eee ((70 / @rootSize)),
    //   #fff (140 / @rootSize)
    // );
    img {
      display: block;
      width: (168 / @rootSize);
      height: (72 / @rootSize);
      box-shadow: (-2 / @rootSize) (5 / @rootSize) (20 / @rootSize)
        (1 / @rootSize) #ddd;
    }
  }
}
.goods-top {
  display: flex;
  justify-content: space-between;
  height: (38 / @rootSize);
  font-size: (18 / @rootSize);
  font-weight: 600;
  img {
    width: (8 / @rootSize);
    height: (14 / @rootSize);
  }
}
.goods {
  display: flex;
  justify-content: space-between;
  .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: (182 / @rootSize);
    img {
      display: block;
      width: (168 / @rootSize);
      height: (115 / @rootSize);
    }
    i {
      font-size: (14 / @rootSize);
      font-weight: 600;
      font-style: normal;
    }
    span {
      font-size: (10 / @rootSize);
      color: #999;
    }
    p {
      font-size: (12 / @rootSize);
      color: #f49d0c;
    }
  }
}
.goods-bottom {
  height: (124 / @rootSize);
  display: flex;
  justify-content: center;
  align-items: center;
  img {
    height: (57 / @rootSize);
    width: 100%;
  }
}
.home-top {
  height: (42 / @rootSize);
  // padding-bottom: (24 / @rootSize);
  align-items: start;
  display: flex;

  p {
    font-size: (18 / @rootSize);
    font-weight: 600;
  }
  span {
    font-size: (12 / @rootSize);
    font-weight: normal;
  }
  span:nth-of-type(1) {
    margin-left: (178 / @rootSize);
  }
  span:nth-of-type(2) {
    margin-left: (24 / @rootSize);
    color: #d3d3d3;
  }
}
.home {
  height: (550 / @rootSize);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .content {
    height: (94 / @rootSize);
    display: flex;
    img {
      display: block;
      margin-right: (16 / @rootSize);
      width: (110 / @rootSize);
      height: (80 / @rootSize);
    }
    .content-right {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .row1 {
        font-size: (14 / @rootSize);
        font-weight: 600;
      }
      .row2,
      .row3 {
        font-size: (10 / @rootSize);
        color: #cfcfcf;
        width: (205 / @rootSize);
      }
      .row4 {
        display: flex;
        .row4-1 {
          height: (16 / @rootSize);
          width: (45 / @rootSize);
          color: #cfcfcf;
          text-align: center;
          line-height: (16 / @rootSize);
          font-size: (10 / @rootSize);
          border: 1px #cfcfcf solid;
          margin-right: (10 / @rootSize);
        }
      }
      .row5 {
        color: #f9c875;
        font-size: (14 / @rootSize);
        font-weight: 600;
        span {
          font-size: (8 / @rootSize);
          font-weight: normal;
        }
      }
    }
  }
}
.search {
  display: flex;
  height: (85 / @rootSize);
  justify-content: center;
  align-items: center;
  .content {
    width: (260 / @rootSize);
    height: (38 / @rootSize);
    border-radius: (16 / @rootSize);
    background-color: #f2f2f3;
    color: #999;
    font-size: (12 / @rootSize);
    text-align: center;
    line-height: (38 / @rootSize);
  }
}
.story {
  height: (85 / @rootSize);
  img {
    width: 100%;
    height: 100%;
  }
}
.footer {
  position: fixed;
  display: flex;
  justify-content: space-around;
  align-items: center;
  left: 0;
  bottom: 0;
  width: 100%;
  height: (50 / @rootSize);
  background-color: #fff;
  a {
    color: #c7c7c7;
    display: flex;
    height: 100%;
    width: (60 / @rootSize);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    i {
      font-size: (20 / @rootSize);
    }
    p {
      font-size: (10 / @rootSize);
    }
  }
  a:hover {
    color: #000;
  }
}
